/**
 * 线条模式的类
 */
lineOper.prototype = new graphOper() ;
function lineOper(manager){
	this.init(manager) ;
	this.manager=manager ;
}
lineOper.prototype.mouseDown = function(){
	try{
		this.manager.tmpObj = new line() ;
		this.updatePos() ;
	}catch(e){alert(e.message)}
}
/**
 * 线条类
 */
line.prototype = new graph() ;
function line(){}
line.prototype.paint = function(printer){
	try{
		printer.moveTo(this.x , this.y) ;
		printer.lineTo(this.ex, this.ey) ;
	}catch(e){alert(e.message)}
}